import AudioMgr, { playType } from './libs/audio/AudioMgr';

const { ccclass, property } = cc._decorator;

@ccclass
export default class Game extends cc.Component {
    @property(cc.Label)
    label: cc.Label = null;

    onLoad() {
        this.label.string = '11111';
    }
    /**
     * 切换场景
     * @param e 事件发起者
     * @param data 需要跳转的场景名称
     */
    public cutScene(e, data) {
        AudioMgr.play(playType.playEffect, 'button');
        cc.director.loadScene(data);
    }
}
